<?php
/*
 +----------------------------------------------------------------------
 + Title        : LoginController 控制器
 + Author       : Randy_chen
 + Version      : V1.0.0.1
 + Initial-Time : 2023/5/28 12:02
 + Last-time    : 2023/5/28 12:02+ chen2
 + Desc         : LoginController
 +----------------------------------------------------------------------
*/


namespace app\user\controller;

use app\common\attributes\Menu;
use app\common\service\UserService;
use think\annotation\Inject;

class LoginController  extends UserBaseController
{
    #[Inject()]
    protected UserService $service;

    #[Menu('通过微信小程序用户手机号登录')]
    public function loginByMiniPhone($fans_id , $phone){
        $res = $this->service->loginByMiniPhone($fans_id ,$phone);
        return $this->returnSuccess($res);
    }
}